
var isCreatw = false;
var locat = (window.location + '').split('/');


$(function(user) {

});

// 点击加载聊天窗口
function msgshow() {
	if(isCreatw){
			alert("已经启动");
			return;
		}else{
			isCreatw = true;
		}
	var diag = new top.Dialog();
	diag.Title = "SUMcms-聊天工具";
	diag.URL =locat+'/plugins/easymob-webim/EasemobMsg.jsp';
	diag.Width = 240;
	diag.Modal = false;
	diag.Height = 450;
	diag.Left = "90%";
	diag.Top = "70%";
	diag.CancelEvent = function() { // 关闭事件
		isCreatw = false;
		diag.close();
	};
	diag.show();
}